package com.cb.eduservice.mapper;

import com.cb.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cb.eduservice.entity.vo.CoursePublishVo;
import com.cb.eduservice.entity.vo.front.CourseWebVo;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Cebb
 * @since 2020-06-22
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 根据课程id,查询课程准备发布的信息
     * @param courseId
     * 课程id
     * @return
     */
    CoursePublishVo getPublishCourseInfo(String courseId);

    /**
     * 根据课程id,查询课程详情页所需要的信息
     * @param courseId
     * 课程id
     * @return
     */
    CourseWebVo getBaseCourseInfo(String courseId);
}
